package com.sgcc.sx.pmos.common.bean;

import android.text.TextUtils;


import com.google.gson.annotations.SerializedName;
import com.sgcc.sx.pmos.common.utils.ArguConstant;

import java.io.Serializable;

public class BaseResponse implements Serializable {

    private String code;
    private String msg;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public boolean isSuccess() {
        if (TextUtils.equals(ArguConstant.SUGGESS, code)) {
            return true;
        } else {
            return false;
        }
    }
}
